x86/hvm: Assert some expectations in hvm_inject_event()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Dec 2016 13:18:38 +0000 (13:18 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Dec 2016 15:04:58 +0000 (15:04 +0000)
commita6c406c1f4a17ef30009090a45470f20f75addde
tree11934d1e763ec8f24f51ffa27a85c2ab4335b3f1
parentc31f3be9b40d5d4703674b35081cfcbabd4ad8bb
x86/hvm: Assert some expectations in hvm_inject_event()

Check that event->error_code is appropriate for the type/vector combination.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c